package org.winexpress

class ProductOption {

    int id
    String optionType   // corresponds to a table e.g. WineRegion OR WineType OR WineVarietal OR more.. next time
    int optionTypeId    // the ID of the optionType
    
    static belongsTo = Product
    static hasOne = [product:Product]
    
    static constraints = {
        id(blank:false, unique:true)
        optionType(blank:false)
        optionTypeId(blank:false)
        product(blank:false)
    }
}
